package cn.newhopedairy.delivery.command;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.time.LocalDate;

/**
 * @author Neo.Li
 * @date 2020-11-2811:41
 */
@Getter
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class DeclareGoodsCmd {
    /**
     * 报货站点ID
     */
    @NotNull
    private Long stationId;

    /**
     * 报货日期（指的是报哪天的货，工厂会排班生产并在指定日期送到站点）
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate declareDate;
}
